import Vue from 'vue'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import VueLazyload from 'vue-lazyload'
// import fastclick from 'fastclick'
import store from '@/store/store'
import '@/assets/css/base.min.css'
import '@/assets/css/mixin.scss'
import 'lib-flexible'
import '@/vant/vant.js'
// 导入 QQ SDK
import { QC } from '@/libs/qc_jssdk.js'
// fastclick.attach(document.body) //解决移动端点击300ms延时
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: '@/assets/img/error.gif',
  loading: '@/assets/img/loading.gif',
  attempt: 1,
})
Vue.config.productionTip = false
// axios.defaults.baseURL = '/api'
Vue.prototype.$http = axios
Vue.prototype.$QQ = QC
// var mixin = {
//   methods: {
//     goBack() {
//       this.$router.go(-1)
//     },
//   },
// }
// Vue.prototype.$bus = new Vue()
new Vue({
  // mixins: [mixin],
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this
  },
  render: (h) => h(App),
}).$mount('#app')
